package com.yxjx.duoxue;

import com.tencent.android.tpush.XGPushClickedResult;
import com.tencent.android.tpush.XGPushManager;
import com.tencent.stat.StatService;
import com.umeng.analytics.MobclickAgent;
import com.yxjx.duoxue.push.PushHelper;

import android.app.Activity;
import android.util.Log;

public class BaseNoActionBarActivity extends Activity {
	
	@Override
	protected void onResume() {
		super.onResume();
		MobclickAgent.onResume(this);
		StatService.onResume(this);
		XGPushClickedResult click = XGPushManager.onActivityStarted(this);
		if (click != null) {
			String custom = click.getCustomContent();
			Log.d("TPush", "custom 1 = " + custom);
			getIntent().putExtra(Yx.KEY_PUSH_EXTRA_CUSTOM, custom);
			// HomePageActivity会解析该extra custom string
		}
	};

	@Override
	protected void onPause() {
		super.onPause();
		MobclickAgent.onPause(this);
		StatService.onPause(this);
		XGPushManager.onActivityStoped(this);
	}
	

}
